package day03.work01;

public class Test {
    public static void playBall(Ball ball){ 
ball.play(); 
} 
public static void main(String[] args) { 
Ball b = new Ball(); 
Ball b2 = new Basketball(); 
Ball b3 = new Football(); 
Test.playBall(b); 
Test.playBall(b2); 
Test.playBall(b3); 
} 
}
